package com.glink.manage.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author qiushaoshan
 * @date 2024-06-22
 * @description 修改密码DTO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserUpdatePwd2DTO {

    @ApiModelProperty(value = "旧密码,sm2带随机数的加密值", required = true)
    @NotBlank(message = "旧密码不能为空")
    @Size(max = 256)
    private String oldPassword;

    @ApiModelProperty(value = "新密码1,sm2带随机数的加密值", required = true)
    @NotBlank(message = "新密码不能为空")
    @Size(max = 256)
    private String newPassword;

    @ApiModelProperty(value = "新密码的确认密码,sm2带随机数的加密值", required = true)
    @NotBlank(message = "新密码的确认密码不能为空")
    @Size(max = 256)
    private String newPassword2;
}
